#define _CRT_SECURE_NO_WARNINGS  1
#include"RBTree.h"


int main()
{
		int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
		RBTree<int, int> t;
		for (auto e : a)
		{
			t.Insert(make_pair(e, e));
			cout << "Insert:" << e << "->" << t.IsBalance() << endl;
		}

		cout << "Height:" << t.Height() << endl;
	
		return 0;
	}